<?php

require_once 'ConfigEditorHandler.php';

function handle_search ()
{
	global $config;

	$config_file = $config['dir.install'].'etc/config.php';
	$req = new SearchConfigEditor(array('source'=>$config_file));
	if ($req->init()) return call_user_func($req->dispatch());
} // end of function handle_check

class SearchConfigEditor extends ConfigEditorHandler
{
	var $params = array('use_search', 'search_in_comments');
	public function loadDefaults ($form)
	{
	} // end of method getFormDefaults
	public function default_base_path ($f)
	{
		return install_get_base_path($f);
	} // end of method default_base_path
}
